import Vue from 'vue';
import { MessageBox } from 'element-ui';

Vue.prototype.$delConfirm = (title = '提示', message = '是否确实删除',call) => {
  MessageBox.confirm(
    '提示',
    {
      title: title || '提示',
      message: message || '是否确实删除',
      showCancelButton: true,
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      customClass:'del-model',
      iconClass: 'el-icon-warning-outline',
      type: 'warning'
    }).then(() => {
      call && call()
    })
};

export default MessageBox;
